package com.hxc.interest.service.impl;

import java.util.List;
import com.hxc.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hxc.interest.mapper.TReactionUserMapper;
import com.hxc.interest.domain.TReactionUser;
import com.hxc.interest.service.ITReactionUserService;

/**
 * 用户和反馈信息中间Service业务层处理
 * 
 * @author hxc
 * @date 2021-08-19
 */
@Service
public class TReactionUserServiceImpl implements ITReactionUserService 
{
    @Autowired
    private TReactionUserMapper tReactionUserMapper;

    /**
     * 查询用户和反馈信息中间
     * 
     * @param id 用户和反馈信息中间主键
     * @return 用户和反馈信息中间
     */
    @Override
    public TReactionUser selectTReactionUserById(Long id)
    {
        return tReactionUserMapper.selectTReactionUserById(id);
    }

    /**
     * 查询用户和反馈信息中间列表
     * 
     * @param tReactionUser 用户和反馈信息中间
     * @return 用户和反馈信息中间
     */
    @Override
    public List<TReactionUser> selectTReactionUserList(TReactionUser tReactionUser)
    {
        return tReactionUserMapper.selectTReactionUserList(tReactionUser);
    }

    /**
     * 新增用户和反馈信息中间
     * 
     * @param tReactionUser 用户和反馈信息中间
     * @return 结果
     */
    @Override
    public int insertTReactionUser(TReactionUser tReactionUser)
    {
        tReactionUser.setCreateTime(DateUtils.getNowDate());
        return tReactionUserMapper.insertTReactionUser(tReactionUser);
    }

    /**
     * 修改用户和反馈信息中间
     * 
     * @param tReactionUser 用户和反馈信息中间
     * @return 结果
     */
    @Override
    public int updateTReactionUser(TReactionUser tReactionUser)
    {
        return tReactionUserMapper.updateTReactionUser(tReactionUser);
    }

    /**
     * 批量删除用户和反馈信息中间
     * 
     * @param ids 需要删除的用户和反馈信息中间主键
     * @return 结果
     */
    @Override
    public int deleteTReactionUserByIds(Long[] ids)
    {
        return tReactionUserMapper.deleteTReactionUserByIds(ids);
    }

    /**
     * 删除用户和反馈信息中间信息
     * 
     * @param id 用户和反馈信息中间主键
     * @return 结果
     */
    @Override
    public int deleteTReactionUserById(Long id)
    {
        return tReactionUserMapper.deleteTReactionUserById(id);
    }
}
